<?php
class Post extends PostsAppModel {

	var $name = 'Post';
	var $useTable = "posts_posts";
	var $actsAs = array(
		'Extend.Sluggable' => array('separator' => '_', 'overwrite' => true),
		'Extend.SoftDeletable' => array()
		);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	//var $user_model = Configure::read('Blog.user_model');
	
	var $hasAndBelongsToMany = array(
			'Category' => array('className' => 'Posts.Category',
						'joinTable' => 'posts_categories_posts',
						'foreignKey' => 'post_id',
						'associationForeignKey' => 'category_id',
						'unique' => true,
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'limit' => '',
						'offset' => '',
						'finderQuery' => '',
						'deleteQuery' => '',
						'insertQuery' => ''
			)
	);

}
?>